package com.epfresh.supplier.entity;

import java.util.ArrayList;

public class City {
    private int result;
    private ArrayList<CityAddressList> tree;
    private ArrayList<CityAddressList> addressList;
    private int newVersion;

    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public int getResult() {
        return this.result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public ArrayList<CityAddressList> getAddressList() {
        if(addressList==null)
            return tree;
        else
            return addressList;
    }

    public void setAddressList(ArrayList<CityAddressList> addressList) {
        this.tree = addressList;
    }

    public ArrayList<CityAddressList> getTree() {
        if(addressList==null)
            return tree;
        else
            return addressList;
    }

    public void setTree(ArrayList<CityAddressList> tree) {
        this.tree = tree;
    }

    public int getNewVersion() {
        return this.newVersion;
    }

    public void setNewVersion(int newVersion) {
        this.newVersion = newVersion;
    }

    @Override
    public String toString() {
        return "City{" +
                "result=" + result +
                ", addressList=" + tree +
                ", newVersion=" + newVersion +
                '}';
    }
}
